package com.woniu.humanresource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.humanresource.entity.AssetsCategory;

import java.util.List;

/**
* @author xiang
* @description 针对表【assetscategory】的数据库操作Service
* @createDate 2022-07-10 17:50:54
*/
public interface AssetsCategoryService extends IService<AssetsCategory> {
    //获取所有资产分类分类
    List<AssetsCategory> getAllAssetsCategory();
    //添加根节点
    void addRootNodeAssetsCategory(String newAssetsCategoryName);
    //添加子节点分类
    void addAssetsCategory(String newAssetsCategoryName,AssetsCategory parentAssetsCategory);
    //删除勾选的节点
    void removeAssetsCategory(List<AssetsCategory> assetsCategories);
    //编辑
    void editAssetsCategory(String newAssetsCategoryName,AssetsCategory assetsCategory);
}
